<?php

/*************************************************************************
Module static
----------------------------------------------------------------
Avasoft CMS Project
Company: Avasoft Co., Ltd                                  
Name: Tran Thi Kim Que                                   
Last updated: 08/03/2011
**************************************************************************/
//ini_set('display_errors','1'); ini_set('display_startup_errors','1');
include_once(ROOT_PATH."classes/dao/static.class.php");
$static = new StaticPage();
$templateFile = "banggiaswf.tpl.html";
$slug = $request->element('slug','');
# Quang cáo
include_once(ROOT_PATH."classes/dao/ads.class.php");
$ads = new Ads();
$banggiaPvItems = $ads->getObjects(1,"status =1 AND gid = 15",array('position'=>'ASC'),'');
$template->assign('banggiaPvItems',$banggiaPvItems);	

$template->assign("slug",$slug);	

include_once(ROOT_PATH.'classes/dao/ads.class.php');
$ads = new Ads();
$support = new Support();
$template->assign('ads',$ads);
$template->assign('usertemplate',$userTemplate);
$template->assign("ROOTPATH",ROOTPATH);
$orderby =array('position'=>'ASC');
$template->assign('orderby',$orderby);
#chuyen muc sp
include_once(ROOT_PATH."classes/dao/procategories.class.php");
$productcategories = new ProductCategories();
$productcatItems = $productcategories->getObjects(1,"status =1 AND pid=0",array('position'=>'ASC'),'');
$template->assign('productcatItems',$productcatItems);
// cbo search product
$listcbosearch = $productcategories->optionAllCategories('id','vn_name','',"pid=0");
$template->assign('listcbosearch',$listcbosearch);

$template->assign('productcategories',$productcategories);

$pageName = "Bảng giá";
$template->assign('pageName',$pageName);
// Code chung toan he thong
include_once(ROOT_PATH."modules/framework.module.php");

$active='gioi-thieu';
$template->assign('active',$active);

?>